Fix 22 failing tests: Compression platform guards, FHIR XML round-trip, ObjectPool regression#72
Merged
SureshKViswanathan merged 3 commits intomainfrom Feb 19, 2026
Conversation
…L round-trip, ObjectPool regression Co-authored-by: SureshKViswanathan <257696045+SureshKViswanathan@users.noreply.github.com>
Co-authored-by: SureshKViswanathan <257696045+SureshKViswanathan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update code for upcoming task
Fix 22 failing tests: Compression platform guards, FHIR XML round-trip, ObjectPool regression
Feb 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Resolve all 22 remaining test failures: 17 CompressionTests (platform), 4 FHIRXMLSerialization (broken round-trip), 1 ObjectPool regression (incorrect test math). Test suite now at 3073 passing, 0 failures.
Related Issues
Type of Change
Changes Made
CompressionTests — 17 failures → 17 skips
requireCompression()helper using#if !canImport(Compression)+XCTSkip. Apple's Compression framework doesn't exist on Linux; tests now skip cleanly instead of throwing unexpected errors.FHIRXMLSerialization — 4 failures → 0
given: ["Alice"]) were silently dropped. FixedbuildElementto recurse on non-dict array items.convertToFHIRJSON()post-processing inFHIRXMLParser:resourceType{"value": "x"}→"x"for FHIR primitive typesxmlnsattributesfhirArrayFields) to correctly wrap single-element arraysmessageID/timestampfields to manually-crafted XML intestResourceContainerXMLDecodingObjectPool regression — 1 failure → 0
preallocate(20)thenacquire(100)sequentially = 20/100 = 20% reuse, but asserted >30%. Mathematically impossible.milestone.md — Updated test stats and fix details.
Testing
Test Coverage
Manual Testing
Documentation
Standards Compliance
Checklist
Performance Impact
Breaking Changes
None.
Screenshots (if applicable)
N/A
Additional Notes
The
fhirArrayFieldsmapping inFHIRXMLParsercovers Patient, Observation, Practitioner, MedicationRequest, Bundle, Encounter, and common complex types. New resource types will need entries added if they use single-element arrays in XML round-trips.For Reviewers:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.